inherited dm_cores: Tdm_cores
  Left = 488
  Top = 276
  inherited sqlConsulta: TSQLQuery
    SQL.Strings = (
      'select'
      '  c.cod_cor,'
      '  c.descricao,'
      '  c.data_cad,'
      '  c.data_alteracao,'
      '  c.situacao,'
      '  case'
      '    when c.situacao = '#39'True'#39' then '#39'ATIVO'#39' else '#39'INATIVO'#39
      '  end as situacao_desc'
      'from cor c')
  end
  inherited cdsConsulta: TClientDataSet
    object cdsConsultaCOD_COR: TIntegerField
      Alignment = taCenter
      FieldName = 'COD_COR'
      Required = True
    end
    object cdsConsultaDESCRICAO: TStringField
      FieldName = 'DESCRICAO'
      Required = True
      Size = 100
    end
    object cdsConsultaDATA_CAD: TDateField
      Alignment = taCenter
      FieldName = 'DATA_CAD'
    end
    object cdsConsultaDATA_ALTERACAO: TDateField
      Alignment = taCenter
      FieldName = 'DATA_ALTERACAO'
    end
    object cdsConsultaSITUACAO: TStringField
      FieldName = 'SITUACAO'
      Size = 5
    end
    object cdsConsultaSITUACAO_DESC: TStringField
      Alignment = taCenter
      FieldName = 'SITUACAO_DESC'
      Required = True
      FixedChar = True
      Size = 7
    end
  end
  inherited qryPKChave: TSQLQuery
    SQL.Strings = (
      'SELECT GEN_ID(gen_cor,1)'
      'FROM RDB$DATABASE')
  end
  inherited cdsRegistro: TClientDataSet
    object cdsRegistroCOD_COR: TIntegerField
      Alignment = taCenter
      FieldName = 'COD_COR'
      Required = True
    end
    object cdsRegistroDESCRICAO: TStringField
      FieldName = 'DESCRICAO'
      Required = True
      Size = 100
    end
    object cdsRegistroDATA_CAD: TDateField
      Alignment = taCenter
      FieldName = 'DATA_CAD'
    end
    object cdsRegistroDATA_ALTERACAO: TDateField
      Alignment = taCenter
      FieldName = 'DATA_ALTERACAO'
    end
    object cdsRegistroSITUACAO: TStringField
      Alignment = taCenter
      FieldName = 'SITUACAO'
      Size = 5
    end
  end
  inherited sqlRegistro: TSQLQuery
    Params = <
      item
        DataType = ftInteger
        Name = 'cod_cor'
        ParamType = ptInput
      end>
    SQL.Strings = (
      'select'
      '  c.cod_cor,'
      '  c.descricao,'
      '  c.data_cad,'
      '  c.data_alteracao,'
      '  c.situacao'
      'from COR c'
      'where c.cod_cor = :cod_cor')
  end
end
